This forum is closed to new posts and
responses. The content has been migrated to the Digital Solutions Community. Please join us there for new content as well as this content. For customer support, please visit the official HCL customer support channels below:
Subject: XPages Javascript - Getting the current database
Feedback Type: Problem
Product Area: Database
Technical Area: Customization
Platform: Windows
Release: 8.5.1
Reproducible: Always
Hi,
This may be a strange/simple/silly question, but how do you get the current database when working with Server Side Javascript?
I am currently getting the database using :
//var database = session.getDatabase(session.getServerName(), "glaapp\\TLRS.nsf")
var database = session.getDatabase(session.getServerName(), "Dev\\TLRS.nsf")
As you can see, I have had to comment out the live database when working in dev and when i make the db live, i need to remember to change this back or distaster strikes!
Really appreciate some guidance. I have tried the 8.5.1 help, but i find it quite poor compared to 6.5 etc (not as many examples etc)
Thanks
Jamie
Feedback number WEBB85TGKD created by ~Dexter Fezhipimanetsi on 05/26/2010
Status: Open
Comments: